package com.hsd.znsh.service;

import com.hsd.znsh.entity.SensorData;
import com.hsd.znsh.entity.SensorGroup;
import com.hsd.znsh.pojo.output.SensorGroupVO;
import com.hsd.znsh.pojo.query.SensorGroupQuery;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface SensorGroupService extends BaseService{

    List<SensorGroupVO> getSensorGroupList(Pageable pageable,SensorGroupQuery sensorGroupQuery,Integer userId);

    long getSensorGroupListTotalPages(SensorGroupQuery sensorGroupQuery,Integer userId);

    SensorGroupVO getSensorGroupInfo(Integer id);

    SensorGroup addSensorGroup(SensorGroup sensorGroup);

    SensorGroup updateSensorGroup(SensorGroup sensorGroup);

    void deleteSensorGroup(Integer id);

    List<SensorGroup> getSensorGroupList();

    List<SensorGroup> getUserSensorGroupList(Integer userId);

    List<SensorGroup> getECList();

    List<SensorGroup> getUserECList(Integer userId);

    List<Map<String,Object>> findSensorData(Integer sensorGroupId, String property);

    List<SensorData> findHistorySensorData(Integer sensorGroupId,Integer totalTime,String property,Integer bh);

}
